import request from "@/utils/request";
// /moment/moments/a7f17031121544719d389fc7cd36b42d?access_token=a06d730e-f1c5-43ab-894b-59ee3b3330c0&source=recommend

export interface commodityBackupModel {
    commissionAmount: null,
    commissionRate: null,
    commissionType: null,
    originPrice: string,
    price: string,
    showLinePrice: boolean,
    unitPrice: string,
    commodityBackup: commodityBackupModel,
    courseEnded: null,
    cover: [],
    createTime: number,
    creator: string,

}
export interface DetailsList {
    addressChanged: boolean,
    addressConfirmRemind: boolean,
    aiyigeApplication: null,
    auditMsg: [],
    auditStatus: null,
    auditTime: null,
    auditor: null,
    auditorName: null,
    categoryId: null,
    channel: string,
    cityId: string,
    cityName: string,
    classification: string,

}

export const getDetails = ( id: number, access_token: string) => {
    return request({
        method: 'get',
        params: {
            access_token
        },
        url: `/moment/moments/${id}`
    })
}
